function like(btn, entityType, entityId, entityUserId, postId){
    $.post(
        CONTEXT_PATH + "/like",
        {"entityType": entityType, "entityId": entityId, "entityUserId": entityUserId, "postId": postId},
        function(resp){
            var data = $.parseJSON(resp);
            if (data.code == 200){
                $(btn).children("b").text(data.status == 1 ? "已赞" : "赞");
                $(btn).children("i").text(data.count);
            }else if(data.code == 403){
                location.href = CONTEXT_PATH + "/login";
            }
        }
    );
}